package com.user.repositories;

import com.user.model.entity.ServerChuZu;
import com.user.model.entity.ServerInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface ServerChuZuRepository extends JpaRepository<ServerChuZu,String>, JpaSpecificationExecutor {

    ServerChuZu findByIdAndDeleted(String id, char deleted);

    List<ServerChuZu> findAllByUserIdAndStateAndDeleted(String usrId, char state, char deleted);
}
